function http({
  url,
  method="get",
  data
}){
  let baseURL="http://124.223.9.151:7000"
  return new Promise((resolve,reject)=>{
    wx.request({
      url:baseURL+url,
      method:method,
      data:data,
      header:{
        //"content-type":"application/x-www-form-urlencoded'
      },
      success:(res)=>{
        resolve(res.data)
      },
      fail:(err)=>{
        reject(err)
      }
    })
  })
}
export default http;